package org.tinygroup.tables;

import org.tinygroup.pojo.BuzIotCard;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;


/**
 * <!-- begin-user-doc --> 物联卡 * <!-- end-user-doc -->
 */
public class BuzIotCardTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final BuzIotCardTable BUZ_IOT_CARD_TABLE = new BuzIotCardTable();

	/**
	 * <!-- begin-user-doc --> 记录标识 * 记录标识 <!-- end-user-doc -->
	 */
	public final Column ID = new Column(this, "id");
	/**
	 * <!-- begin-user-doc --> 卡的状态 * 卡的状态：1=正常、2=待激活、3=停机 <!-- end-user-doc -->
	 */
	public final Column CARD_STATUS = new Column(this, "card_status");
	/**
	 * <!-- begin-user-doc --> 卡号 * 卡号 <!-- end-user-doc -->
	 */
	public final Column MSISDN = new Column(this, "msisdn");
	/**
	 * <!-- begin-user-doc --> 公司记录外键 * 公司记录外键 <!-- end-user-doc -->
	 */
	public final Column FK_BUZ_FIRM_ID = new Column(this, "fk_buz_firm_id");
	/**
	 * <!-- begin-user-doc --> 客户指定的卡的管理者 * 客户指定的卡的管理者 <!-- end-user-doc -->
	 */
	public final Column FK_MANGER_ID = new Column(this, "fk_manger_id");
	/**
	 * <!-- begin-user-doc --> 订单表的外键 * 订单表的外键 <!-- end-user-doc -->
	 */
	public final Column FK_BUZ_ORDER_ID = new Column(this, "fk_buz_order_id");
	/**
	 * <!-- begin-user-doc --> API表的外键 * API表的外键 <!-- end-user-doc -->
	 */
	public final Column FK_BUZ_API_ID = new Column(this, "fk_buz_api_id");
	/**
	 * <!-- begin-user-doc --> 系统组织架构记录外键 * 系统组织架构记录外键 <!-- end-user-doc -->
	 */
	public final Column FK_SYS_ORG_ID = new Column(this, "fk_sys_org_id");
	/**
	 * <!-- begin-user-doc --> 备注 * 备注 <!-- end-user-doc -->
	 */
	public final Column REMARK = new Column(this, "remark");
	/**
	 * <!-- begin-user-doc --> SIM卡卡号 * SIM卡卡号 <!-- end-user-doc -->
	 */
	public final Column ICCID = new Column(this, "iccid");
	/**
	 * <!-- begin-user-doc --> GPRS已用量 * GPRS已用量，单位KB <!-- end-user-doc -->
	 */
	public final Column DOSAGE_OF_GPRS = new Column(this, "dosage_of_gprs");

	/**
	 * <!-- begin-user-doc --> GPRS套餐总流量 * GPRS套餐总流量，单位MB <!-- end-user-doc -->
	 */
	public final Column SUM_OF_BUNDLE_GPRS = new Column(this,
			"sum_of_bundle_gprs");

	/**
	 * <!-- begin-user-doc --> GPRS套餐剩余流量 * GPRS套餐剩余流量，单位MB <!-- end-user-doc
	 * -->
	 */
	public final Column REMAINDER_OF_BUNDLE_GPRS = new Column(this,
			"remainder_of_bundle_gprs");

	/**
	 * <!-- begin-user-doc --> 上行短信已用条数 * 上行短信已用条数 <!-- end-user-doc -->
	 */
	public final Column DOSAGE_OF_ASCENDING_SMS = new Column(this,
			"dosage_of_ascending_sms");

	/**
	 * <!-- begin-user-doc --> 套餐短信条数 * 套餐短信条数 <!-- end-user-doc -->
	 */
	public final Column SUM_OF_BUNDLE_SMS = new Column(this,
			"sum_of_bundle_sms");

	/**
	 * <!-- begin-user-doc --> 套餐短信条数 * 套餐短信条数 <!-- end-user-doc -->
	 */
	public final Column REMAINDER_OF_BUNDLE_SMS = new Column(this,
			"remainder_of_bundle_sms");

	/**
	 * <!-- begin-user-doc --> BUY_TIME * <!-- end-user-doc -->
	 */
	public final Column BUY_TIME = new Column(this, "buy_time");
	/**
	 * <!-- begin-user-doc --> 号码激活日期 * 号码激活日期 <!-- end-user-doc -->
	 */
	public final Column ACTIVATE_TIME = new Column(this, "activate_time");
	/**
	 * <!-- begin-user-doc --> 停机时间 * 停机时间 <!-- end-user-doc -->
	 */
	public final Column SHUTDOWN_TIME = new Column(this, "shutdown_time");
	/**
	 * <!-- begin-user-doc --> 余额 * 余额 <!-- end-user-doc -->
	 */
	public final Column BALANCE = new Column(this, "balance");
	/**
	 * <!-- begin-user-doc --> 是否开机 * 是否开机：1=开机、2=关机 <!-- end-user-doc -->
	 */
	public final Column IS_OPEN = new Column(this, "is_open");
	/**
	 * <!-- begin-user-doc --> 是否在线 * 是否在线：1=开机、2=关机 <!-- end-user-doc -->
	 */
	public final Column IS_ONLINE = new Column(this, "is_online");
	/**
	 * <!-- begin-user-doc --> 预计到期时间 * <!-- end-user-doc -->
	 */
	public final Column EXPIRE_TIME = new Column(this, "expire_time");
	/**
	 * <!-- begin-user-doc --> 位置 * 位置 <!-- end-user-doc -->
	 */
	public final Column LOCATION = new Column(this, "location");
	/**
	 * <!-- begin-user-doc --> 记录创建时间 * 记录创建时间 <!-- end-user-doc -->
	 */
	public final Column CREATE_TIME = new Column(this, "create_time");
	/**
	 * <!-- begin-user-doc --> 时间戳 * 时间戳 <!-- end-user-doc -->
	 */
	public final Column TS = new Column(this, "ts");
	/**
	 * <!-- begin-user-doc --> 套餐 * 套餐 <!-- end-user-doc -->
	 */
	public final Column BUNDLE = new Column(this, "bundle");

	public BuzIotCardTable() {
		super("buz_iot_card");
	}

	public BuzIotCardTable(String schemaName) {
		super(schemaName, "buz_iot_card");
	}

	public BuzIotCardTable(String schemaName, String alias) {
		super(schemaName, "buz_iot_card", alias);
	}

	public BuzIotCardTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "buz_iot_card", alias, withAs);
	}

	public boolean isAutoGeneratedKeys() {
		return true;
	}

	public Class<BuzIotCard> getPojoType() {
		return BuzIotCard.class;
	}

}
